/**************************************
 *
 * VLOOK 模板主题
 *
 * powered by MAX°孟兆
 *
 * QQ Group: 805502564
 * Telegram Channel: t.me/vlook_markdown
 * email: maxchow@qq.com
 *
 * For(wechat): lsp_zc
 * 2024-3
 *
 *************************************/

@import "../font";
@import "../color";
@import "../common";

// 主题信息
@themeVer: "V25.0";
@themeName: "vlook-x-lspzc";
@themeDesc: "× lspzc";
@themeEmail: "lsp_zc@qq.com";

// 指定字体主题
.applyFontStyle(local);
// 指定主题配套的圆角
.applyThemeRadius(none);
// 表格、插图指定居中对齐
.genTableAndFigureAlign(center);

:root {
    --thm-fav-logo-lg: url("");
    --thm-fav-logo-dk: var(--thm-fav-logo-lg);
}

// 主题主色
@theme1: #488FE0;
@theme2: #E04C4C;
@theme3: #FFFFFF;
@theme1Dark: #4992E6;
@theme1Alt: #C5D4E6;
@theme1AltDark: #22446B;
@theme2Dark: @theme2;
@theme2Alt: #E6C5C5;
@theme2AltDark: #6B2525;
@theme1Fade: rgba(red(@theme1), green(@theme1), blue(@theme1), @accOpacity);
@theme2Fade: rgba(red(@theme2), green(@theme2), blue(@theme2), @accOpacity);
@theme2FadeDark: rgba(red(@theme2), green(@theme2), blue(@theme2), 40%);

@themeForeColor: @theme1;
@themeForeColorFade: fade(@themeForeColor, 50%);
@themeBgColor: @theme3;
@themeBgColorFade: fade(@themeForeColor, 50%);
@themeBgColorDark: darken(@themeForeColor, 20%);
@themeBgColorAlt: lighten(@themeForeColor, 42%);

// 标题色
@headerColor: @theme1;
@headerColorDark: @theme1Dark;

// 渐变标题色 h1-h5
@lgH1Bg: linear-gradient(135deg, @theme2 10%, @theme1 60%);
@lgH2Bg: @lgH1Bg;
@lgH1BgClip: text;
@lgH2BgClip: @lgH1BgClip;
@lgH1Color: transparent;
@lgH2Color: @lgH1Color;

@h3Color: var(--d-fc);
@h4Color: var(--d-fc);
@h5Color: var(--d-fc);
@h6Color: var(--d-fc);
@lgH3Color: @h3Color;
@lgH4Color: @h4Color;
@lgH5Color: @h5Color;

// @tocHeaderNumColor: @docTextColorLightFade;
@contentHeaderNumColor: @themeForeColorFade;
@h1Bg: linear-gradient(0deg, var(--h-bg-start), var(--h-bg-end));
@multiHeaderBG: none;
// @headerTextAlign: center;
@h1TextAlign: center;
@headerPadding: 10px 0 0 0;
//@headerLetterSpacing: 0;//0.15em;

// 不进行章节自动编号
@vChpAutoNum: "h1{{#none#}},h2{{#none#}},h3{{#none#}},h4{{#none#}},h5{{#none#}}";
@h1BeforeContent: "";
@h2BeforeContent: "";
@h3BeforeContent: "";
@h4BeforeContent: "";
@h5BeforeContent: "";

// 标题边框
@h1BorderTop: 5px solid var(--h-box-shadow);
@h2BorderBottom: 2px solid var(--h-box-shadow);
@h1Margin: 2em 0 0 0;
@h2Margin: 2em 0 0 0;
@h3Margin: 1.5em 0 0 0;
@h4Margin: 1.5em 0 0 0;
@h5Margin: 1.25em 0 0 0;
@h6Margin: 1em 0 0 0;

// 题注文字、背景色
// @captionTextColor: var(--d-fc-a);
@captionBackground: none;

// 行内代码
@codeTextColor: @theme2;

// 按钮色
@buttonForeColor: @themeBgColor;
@buttonForeHoverColor: @theme3;
@buttonBgColor: @themeForeColor;
// 文库按钮颜色
@docLibButtonForeColor: @buttonForeColor;
@docLibButtonForeHoverColor: @buttonForeHoverColor;
@docLibButtonBgColor: @buttonBgColor;
// 指定 kbd 按钮风格
.applyKbdRadius(none);

// 链接颜色
@aBorderWidth: 2px;
@aColor: @headerColor;
@aColorDark: @headerColorDark;
@aLineColor: @theme2;
@aHoverColor: @aLineColor;
@aActiveColor: desaturate(@aLineColor, 50%);

// 表格边框
@tableBorderColor: var(--d-fc-a);
@tableBorderWidth: 0;
@tableBorderLeftWidth: 0;
@tableBorderRightWidth: 0;
@tableBorderTopWidth: 0;
@tableBorderBottomWidth: 2px;
@tableThBorderRightWidth: 1px solid var(--d-bc);;
// @tableTdBorderRightWidth: 0;
// 表格行 hover
@tableTrHoverBg: fade(@aHoverColor, 20%);
@tableTrHoverBgDark: fade(@aHoverColor, 25%);
// 表格圆角
// @tableBorderRadius: 0px;
// @tableBorderRadiusXC: 0px;
// 表格背景
@tableBackground: var(--d-bc);
@tableThColor: var(--d-bc);
@tableThBackground: @tableBorderColor;
@tableTdBackground: none;
// 表格单元格阴影
@tableFirstThBoxShadow: none;
@tableThBoxShadow: 0 1px 0 var(--tbl-h-bd) inset;
@tableThRepeaterBoxShadow: @tableThBoxShadow;
@tableFirstTdBoxShadow: none;
@tableTdBoxShadow: 0 -1px 0 0 var(--tbl-cell-bd);

// 封面、封底文字位置及对齐方式
@coverTextAlign: left;
@coverTextPadding: 120px 60px 50px;
@coverTextColor: @themeForeColor;
@coverSubColor: @aLineColor;
@coverUnderlineColor: #606070;
@coverAuthorColor: @coverUnderlineColor;
@coverOwnerColor: @coverAuthorColor;

@backCoverTextAlign: left;
@backCoverTextPadding: 100px 60px 50px 60px;
@backCoverTextColor: @themeForeColor;

// 封面装饰性文本样式 before
@coverTextBeforeContent: "";
@coverTextBeforePosition: initial;
@coverTextBeforeLeft: initial;
@coverTextBeforeTop: initial;
@coverTextBeforeColor: initial;
@coverTextBeforeFontSize: initial;
@coverTextBeforeFontWeight: initial;
@coverTextBeforeOpacity: initial;
// 封面装饰性文本样式 after
@coverTextAfterContent: "";
@coverTextAfterTextAlign: initial;
@coverTextAfterLeft: initial;
@coverTextAfterTop: @coverTextBeforeTop;
@coverTextAfterRight: initial;
@coverTextAfterColor: @coverTextBeforeColor;
@coverTextAfterFontSize: @coverTextBeforeFontSize;

// 对比度边框色，用于主题色与背景色对比度比较低时的边缘视觉识别
@contrastBorder: 0 0 0 0 transparent;
@contrastBorderForCover: 0 0 0 2px rgba(0, 0, 0, 0.1) inset;

// 封面背景设置
@coverBackgroundColor: @themeBgColor;
@coverBackgroundImage: var(--thm-c-logo), var(--thm-c-m1), var(--thm-c-m2), var(--thm-c-m3);
@coverBackgroundSize: 160px 80px, auto, auto, auto;
@coverBackgroundRepeat: no-repeat, no-repeat, no-repeat, no-repeat;
@coverBackgroundPosition: right 80px, center 550px, left 635px, right 730px;

// 封底背景设置
@backCoverBackgroundColor: @coverBackgroundColor;
@backCoverBackgroundImage: var(--thm-c-logo), var(--thm-c-m2), var(--thm-c-m3);
@backCoverBackgroundSize: auto, auto, auto;
@backCoverBackgroundRepeat: no-repeat, no-repeat, no-repeat;
@backCoverBackgroundPosition: right 80px, left 235px, right 330px;

// 文档扩展区域背景
@docExtBackgroundImage: var(--thm-doc-ext-bg), var(--thm-c-m2), var(--thm-c-m3);
@docExtBackgroundSize: auto, auto, auto;
@docExtBackgroundRepeat: no-repeat, no-repeat, no-repeat;
@docExtBackgroundPosition: left top, left bottom 250px, right bottom 50px;
@docExtBackgroundFilter: blur(8px);

// 封面、封底素材资源
:root {
    --thm-c-logo: url("");
    --thm-c-m1: url("");
    --thm-c-m2: url("");
    --thm-c-m3: url("");
}

@import "../base";

// 生成指定风格的徽章样式
.genBadgeStyle(cap);

// 生成 GSA 样式
.genGSA_simple();
